﻿@using System.Diagnostics
@using Uoko.FireProj.WebSite.Models
@{
    var menuList = ViewBag.MenuTreeData as List<MenuTreeVM>;
}
<!DOCTYPE html>

<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta content="" name="description" />
    <meta content="" name="author" />
    <link rel="shortcut icon" href="~/favicon.ico" />

    <!-- BEGIN GLOBAL MANDATORY STYLES -->
    <link href="~/Metronic/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Metronic/assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css">
    <link href="~/Metronic/assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="~/Metronic/assets/global/plugins/icheck/skins/all.css" rel="stylesheet" />
      <link href="~/Metronic/assets/global/plugins/jstree/dist/themes/default/style.min.css" rel="stylesheet" />
    <!-- END GLOBAL MANDATORY STYLES -->
    <!-- BEGIN THEME STYLES -->
    <link href="~/Metronic/assets/global/css/components-md.css" id="style_components" rel="stylesheet" type="text/css" />
    <link href="~/Metronic/assets/global/css/plugins-md.css" rel="stylesheet" type="text/css" />
    <link href="~/Metronic/assets/admin/layout/css/layout.css" rel="stylesheet" type="text/css" />
    <link href="~/Metronic/assets/admin/layout/css/themes/darkblue.css" rel="stylesheet" type="text/css" id="style_color" />
    <link href="~/Metronic/assets/admin/layout/css/custom.css" rel="stylesheet" type="text/css" />

  
    @RenderSection("css", required: false)
    <!-- END THEME STYLES -->
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<body class="page-md page-header-fixed page-quick-sidebar-over-content page-full-width">
    <!-- BEGIN HEADER -->
    <div class="page-header md-shadow-z-1-i navbar navbar-fixed-top">
        <!-- BEGIN HEADER INNER -->
        <div class="page-header-inner">
            <!-- BEGIN LOGO -->
            <div class="page-logo">
                <a href="@Url.Action("Index", "Home")">
                    <img src="~/Content/Images/logo.png"  alt="logo"  height="40" width="200"/>
                </a>
            </div>
               
            <div class="hor-menu hidden-sm hidden-xs">
                <ul class="nav navbar-nav">

                    @if (menuList != null)
                    {
                        foreach (var item in menuList)
                        {
                            if (item.IsActive)
                            {
                                if (item.Children != null && item.Children.Count > 0)
                                {
                                    <li class="classic-menu-dropdown active">
                                        <a data-toggle="dropdown" href="javascript:;" data-hover="megamenu-dropdown" data-close-others="true">
                                            @item.MenuName<i class="fa fa-angle-down"></i>
                                            <span class="selected">
                                            </span>
                                        </a>
                                        <ul class="dropdown-menu pull-left">
                                            @foreach (var subItem in item.Children)
                                            {
                                                <li class="">
                                                    <a href="@Url.Action(subItem.Action,subItem.Controller)">
                                                        @subItem.MenuName
                                                    </a>
                                                </li>
                                            }
                                        </ul>
                                    </li>
                                }
                                else
                                {
                                    <li class="classic-menu-dropdown active">
                                        <a href="@Url.Action(item.Action,item.Controller)">
                                            @item.MenuName
                                            <span class="selected">
                                            </span>
                                        </a>
                                    </li>
                                }

                            }
                            else
                            {
                                if (item.Children != null && item.Children.Count > 0)
                                {
                                    <li class="classic-menu-dropdown">
                                        <a data-toggle="dropdown" href="javascript:;" data-hover="megamenu-dropdown" data-close-others="true">
                                            @item.MenuName<i class="fa fa-angle-down"></i>
                                        </a>
                                        <ul class="dropdown-menu pull-left">
                                            @foreach (var subItem in item.Children)
                                            {
                                                <li class="">
                                                    <a href="@Url.Action(subItem.Action,subItem.Controller)">
                                                        @subItem.MenuName
                                                    </a>
                                                </li>
                                            }
                                        </ul>
                                    </li>
                                }
                                else
                                {
                                    <li class="classic-menu-dropdown ">
                                        <a href="@Url.Action(item.Action,item.Controller)">
                                            @item.MenuName
                                        </a>
                                    </li>
                                }

                            }

                        }
                    }
                          
                </ul>
            </div>
            <!-- END LOGO -->
            <!-- BEGIN RESPONSIVE MENU TOGGLER -->
            <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse">
            </a>
            <!-- END RESPONSIVE MENU TOGGLER -->
            <!-- BEGIN PAGE TOP -->
            <div class="page-top">
                <!-- BEGIN TOP NAVIGATION MENU -->
                <div class="top-menu">
                    <ul class="nav navbar-nav pull-right">

                        <!-- BEGIN USER LOGIN DROPDOWN -->
                        <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
                        <li class="dropdown dropdown-user">
                            <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                                <img alt="" class="img-circle" src="~/Metronic/assets/admin/layout2/img/avatar3_small.jpg" />
                                <span class="username username-hide-on-mobile">
                                    @User.Identity.Name
                                </span>
                                <i class="fa fa-angle-down"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-menu-default">
                                <li>
                                    <a href="@Url.Action("LogOut","Home")">
                                        <i class="icon-key"></i> Log Out
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <!-- END USER LOGIN DROPDOWN -->
                    </ul>
                </div>
                <!-- END TOP NAVIGATION MENU -->
            </div>
                    <!-- END PAGE TOP -->
            </div>
            <!-- END HEADER INNER -->
        </div>
    <!-- END HEADER -->
    <div class="clearfix">


    </div>
    <!-- BEGIN CONTAINER -->
    <div class="page-container">
        <!-- BEGIN SIDEBAR -->
       
        <!-- END SIDEBAR -->
        <!-- BEGIN CONTENT -->
        <div class="page-content-wrapper">
            <div class="page-content">
                <!-- BEGIN PAGE CONTENT-->
                <div class="row" ng-app="FireProj">
                    <div class="col-md-12">
                        @RenderBody()
                    </div>
                </div>
                <!-- END PAGE CONTENT-->
            </div>
        </div>
    </div>
    <!-- END CONTAINER -->
    <!-- BEGIN FOOTER -->
    <div class="page-footer">
        <div class="page-footer-inner">
            <p>&copy; 2016 - J-Go TEAM</p>
        </div>
        <div class="scroll-to-top">
            <i class="icon-arrow-up"></i>
        </div>
    </div>

    <!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
    <!-- BEGIN CORE PLUGINS -->
    <!--[if lt IE 9]>
    <script src="~/Metronic/assets/global/plugins/respond.min.js"></script>
    <script src="~/Metronic/assets/global/plugins/excanvas.min.js"></script>
    <![endif]-->
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script src="~/Scripts/bootstrap.min.js"></script>
    <script src="~/Metronic/assets/global/plugins/jquery-migrate.min.js" type="text/javascript"></script>
    <script src="~/Metronic/assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
    <script src="~/Metronic/assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
    <script src="~/Metronic/assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
    <script src="~/Metronic/assets/global/plugins/jquery.cokie.min.js" type="text/javascript"></script>
    <script src="~/Metronic/assets/global/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
    <script src="~/Metronic/assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
    <script src="~/Metronic/assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
    
    <script src="~/Scripts/angular.min.js"></script>
    <script src="~/Scripts/angular-messages.min.js"></script>
    <script src="~/Scripts/ui-bootstrap-tpls-1.1.0.min.js"></script>
    <script src="~/Metronic/assets/global/plugins/icheck/icheck.min.js"></script>
   

    <script src="~/Metronic/assets/global/scripts/metronic.js" type="text/javascript"></script>
    <script src="~/Metronic/assets/admin/layout2/scripts/layout.js" type="text/javascript"></script>

   
    <script src="~/app/global.js"></script>
    @RenderSection("scripts", required: false)
    <script>
        jQuery(document).ready(function () {
            Metronic.init(); // init metronic core componets
            Layout.init(); // init current layout
        });
    </script>
    <!-- END JAVASCRIPTS -->

</body>
<!-- END BODY -->
</html>